home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / GENetReleaseƒ / GEDemo / Walk.h < prev   
Text File  |  1994-03-07  |  1KB  |  66 lines

  1. /*
  2.     Walk.h
  3.     
  4.     Animated walking figure on balcony
  5.     
  6.     Copyright 1993 by Al Evans. All rights reserved.
  7.     
  8.     11/8/93
  9.     
  10. */
  11.  
  12. //Load precompiled symbols if in MPW C
  13. #ifdef applec
  14. #ifndef __cplusplus
  15. #ifndef PRELOAD
  16. #pragma load "::ToolKit.precompile"
  17. #define PRELOAD
  18. #endif
  19. #endif
  20. #endif
  21.  
  22. #include "GraphElements.h"
  23. #include "Sensors.h"
  24.  
  25. //Resource numbers of PICTs making up balcony scene
  26.     
  27. #define rBalconyPic        220
  28. #define rAnimWalk        501
  29. #define    rSliderBkg        750
  30. #define rSliderCtrl        751
  31.  
  32. //Position of balcony
  33. #define balconyLeft        94
  34. #define balconyTop        131
  35.  
  36. //Position of speed control
  37. #define sliderLeft        48
  38. #define sliderTop        54
  39.  
  40. //Balcony scene planes
  41. #define walkPlane        3
  42. #define balconyPlane    13
  43. #define sliderPlane        4
  44.  
  45. //Balcony scene IDs
  46.  
  47. #define walkID            'CEA '
  48. #define balconyID        'BALC'
  49. #define sliderID        'SCTL'
  50.  
  51. #ifdef __cplusplus
  52. extern "C" {
  53. #endif
  54.  
  55. Boolean LoadBalconyScene(GEWorldPtr world);
  56.  
  57. //Autochange proc for walk animation
  58. pascal void DoWalker(GEWorldPtr world, GrafElPtr walker);
  59.  
  60. //Callback proc for speed control slider
  61. pascal void AdjustSpeed(GEWorldPtr world, short newSpeed);
  62.  
  63. #ifdef __cplusplus
  64. }
  65. #endif
  66.